package com.yangj.web;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import com.yangj.model.BannerImgItem;
import com.yangj.model.ServiceType;
import net.sf.json.JSONArray;
public class GetNavBannerItems extends JsonServlet {
	@Override
	public String dealInput(Map<String, String[]> input) {
		String path="/img/";
		List<BannerImgItem> serviceImgItems=new LinkedList<BannerImgItem>();
		serviceImgItems.add(new BannerImgItem(path+"bg1.jpg"));
		serviceImgItems.add(new BannerImgItem(path+"bg2.jpg"));
		serviceImgItems.add(new BannerImgItem(path+"bg3.jpg"));
//		serviceImgItems.add(new BannerImgItem("bg1.jpg"));
//		serviceImgItems.add(new BannerImgItem("bg2.jpg"));
//		serviceImgItems.add(new BannerImgItem("bg3.jpg"));
		return JSONArray.fromObject(serviceImgItems).toString();
	}

}
